package com.project.psc.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 邀请表和供应商中间表实体
 */
@Data
@TableName("t_invite_supplier")
public class InviteSupplierBean {

    /**
     * 采购邀请和供应商实体id
     */
    @TableId(value = "pk_id", type = IdType.AUTO)
    private Long id;

    /**
     * 供应商外键
     */
    @TableField("fk_supplierId")
    private Long supplierId;

    /**
     * 采购邀请表外键
     */
    @TableField("fk_inviteId")
    private Long inviteId;

    /**
     * 阅读状态
     */
    @TableField("is_read")
    private Integer readStatus = 0;

    /**
     * 采购邀请
     */
    @TableField(exist = false)
    private InviteBean invite;
}
